package com.example.myapplication.lib.edit;

import android.os.Parcel;
import android.text.TextPaint;
import android.text.style.ForegroundColorSpan;

import androidx.annotation.NonNull;

public class ForegroundColorSpanUnderline extends ForegroundColorSpan {


    public ForegroundColorSpanUnderline(int color) {
        super(color);
    }

    public ForegroundColorSpanUnderline(@NonNull Parcel src) {
        super(src);
    }

    @Override
    public void updateDrawState(@NonNull TextPaint textPaint) {
        textPaint.setColor(getForegroundColor());
        textPaint.setUnderlineText(false);

    }
}
